import React, { Component } from 'react';
import { Form, Row, Col } from 'antd';
import ShowType from '../../../routes/common/showType';
import styles from '../../../index.less';
import * as config from '../../../utils/config';

const FormItem = Form.Item;

class TabSalesBuyerComponent extends Component {
  constructor(props) {
    super(props);
    this.state = {
      sTabId: props.app.currentPane.key, /* 当前标签 */
      componentName: props.componentName, /* 组件名 */
      masterConfig: props.masterConfig, /* 配置 */
      sId: props.sId, /* 业务数据Id */
      dataList: [], /* 数据 */
      sActiveId: props.sActiveId, /* 窗体Id */
      disabled: props.disabled, /* 是否是查看状态 */
      tabSalesControl: '', /* 销售采购生产参数 */
      tabCommonSetting: '', /* 通用设置与OEE设置 */
      tabProductManage: '', /* 生产管理控制 */
      tabSchedule: '', /* 排程控制与统计 */
      sCbxDeliverGoods: '', /* 送货单控制(按..单送货) */
      sCbxDeliverGoodsNotify: '', /* 送货通知单控制(按..单通知) */
      sCbxSrcNoCheck: '', /* 未对账印件清单来源 */
      bCkxLookCustomer: '', /* 启用客户查看权限 */
      bCkxDeliverGoodsReply: '', /* 启用送货单回执流程 */
      bCkxUseByCheck: '', /* 客户信息审核后，才能启用 */
      bCkxGetAllWebOrder: '', /* 获取线上订单(审核+未审核) */
      sCbxSerchDate: '', /* 列表明细查询日期类型 */
      bCkxLookSupply: '', /* 启用供应商查看权限(只针对发外) */
      bCkxDefineCheck: '', /* 启用自定义审核功能 */
      bCkxTmpCheck: '', /* 启用临时审核 */
      bCkxModifyBillNoMakePerson: '', /* 启用非制单人修改单据 */
      bCkxIntervalMonthModifyBill: '', /* 启用隔月修改单据 */
      bCkxOeeNoConnectPlan: '', /* 印后工序OEE,不关联计划排程 */
      bCkxProduction: '', /* 现产报产二次审核才记工资 */
      bCkxCopyLimit: '', /* 不显示禁止拷贝 */
      sCbxOutSideCostPrice: '', /* 发外加工取计划成本价 */
      sCbxFactoryCalendar: '', /* 工厂日历 */
      sCbxMat: '', /* 材料准备 */
      sCbxProductionReport: '', /* 产量上报数据源 */
      sCbxDstributionWage: '', /* 工资分配方案 */
      bCkxRealWage: '', /* 启用实际工资 */
      bCkxComplexWage: '', /* 启用复杂计件公司解决方案 */
      bCkxProcessFilter: '', /* 启用用户过滤排程工序功能 */
      bCkxNotProduction: '', /* 产量上报禁止多报 */
      bCkxOrderStart: '', /* OEE工序没有开工,下道工序不能开工 */
      bCkxOeeLogin: '', /* OEE登录按班组选机台 */
      sCbxProductioning: '', /* 正在生产标识 */
      sCbxWorkOrderComplete: '', /* 生产完工标识 */
      sCbxRateGetValue: '', /* 倍率取值标准 */
      sCbxProcessSelectType: '', /* 选择工序类型 */
      sCbxNoProductProcessGetValue: '', /* 无成品工序产出取值 */
      sCbxProductMaterials: '', /* 领料数据来源 */
      sCbxLine: '', /* 自动化线下流程 */
      sCbxFormula: '', /* 轮转订单公式 */
      bCkxCopyFromTechnology: '', /* 工单复制从工艺卡,以工艺为主 */
      bCkxWorkOrderNoDrawOutSide: '', /* 工单没有领料和发外入库,单据不能完工 */
      bCkxMaterialsViewAll: '', /* 物料需求计划显示全部物料 */
    };
  }

  componentWillMount() {
    /* 获取主表数据 */
    const {
      masterConfig, sActiveId, sId, componentName, sTabId,
    } = this.state;
    const { dispatch } = this.props;
    // if (sId !== undefined && sId !== '') {
    const mainId = masterConfig.sId;
    /* 表Id */
    const value = { sId, pageSize: '', pageNum: '' };
    /* 业务数据Id */
    const dataUrl = `${config.server_host}syssystem/getSyssystemDataByFormcustomId/${mainId}?sModelsId=${sActiveId}`;
    dispatch({
      type: 'content/getUrlPostData',
      payload: {
        url: dataUrl, sTabId, componentName, value, formRoute: '/syssystemsettings', returnType: 'data',
      },
    });
    /* 获取主表数据 */
    // }
    if (masterConfig.gdsconfigformslave !== undefined) {
      const mainConfig = masterConfig.gdsconfigformslave;
      this.setState({
        sId: sId !== undefined ? sId : '',
        tabSalesControl: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'tabsalescontrol'))[0],
        tabCommonSetting: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'tabcommonsetting'))[0],
        tabSchedule: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'tabschedule'))[0],
        tabProductManage: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'tabproductmanage'))[0],
        sCbxDeliverGoods: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxdelivergoods'))[0],
        sCbxDeliverGoodsNotify: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxdelivergoodsnotify'))[0],
        sCbxSrcNoCheck: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxsrcnocheck'))[0],
        bCkxLookCustomer: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxlookcustomer'))[0],
        bCkxDeliverGoodsReply: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxdelivergoodsreply'))[0],
        bCkxUseByCheck: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxusebycheck'))[0],
        bCkxGetAllWebOrder: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxgetallweborder'))[0],
        sCbxSerchDate: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxserchdate'))[0],
        bCkxLookSupply: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxlooksupply'))[0],
        bCkxDefineCheck: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxdefinecheck'))[0],
        bCkxTmpCheck: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxtmpcheck'))[0],
        bCkxModifyBillNoMakePerson: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxmodifybillnomakeperson'))[0],
        bCkxIntervalMonthModifyBill: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxintervalmonthmodifybill'))[0],
        bCkxOeeNoConnectPlan: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxoeenoconnectplan'))[0],
        bCkxProduction: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxproduction'))[0],
        bCkxCopyLimit: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxcopylimit'))[0],
        sCbxOutSideCostPrice: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxoutsidecostprice'))[0],
        sCbxFactoryCalendar: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxfactorycalendar'))[0],
        sCbxMat: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxmat'))[0],
        sCbxProductionReport: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxproductionreport'))[0],
        sCbxDstributionWage: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxdstributionwage'))[0],
        bCkxRealWage: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxrealwage'))[0],
        bCkxComplexWage: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxcomplexwage'))[0],
        bCkxProcessFilter: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxprocessfilter'))[0],
        bCkxNotProduction: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxnotproduction'))[0],
        bCkxOrderStart: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxorderstart'))[0],
        bCkxOeeLogin: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxoeelogin'))[0],
        sCbxProductioning: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxproductioning'))[0],
        sCbxWorkOrderComplete: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxworkordercomplete'))[0],
        sCbxRateGetValue: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxrategetvalue'))[0],
        sCbxProcessSelectType: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxprocessselecttype'))[0],
        sCbxNoProductProcessGetValue: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxnoproductprocessgetvalue'))[0],
        sCbxProductMaterials: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxproductmaterials'))[0],
        sCbxLine: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxline'))[0],
        sCbxFormula: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'scbxformula'))[0],
        bCkxCopyFromTechnology: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxcopyfromtechnology'))[0],
        bCkxWorkOrderNoDrawOutSide: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxworkordernodrawoutside'))[0],
        bCkxMaterialsViewAll: mainConfig.filter(item => (item.sControlName.toLowerCase() === 'bckxmaterialsviewall'))[0],
      });
    }
  }

  componentWillReceiveProps(nextProps) {
    const {
      sId, disabled, content, dataSet,
    } = nextProps;
    const { dataList } = content;
    const {
      sDataListTabId, returnType, urlData, loading, componentName,
    } = dataList;
    this.setState({ disabled, dataList: dataSet });
    if (this.state.sTabId === sDataListTabId && this.state.sTabId === nextProps.app.currentPane.key
      && this.state.componentName === componentName) {
      if (loading) return;
      if (returnType === 'data') {
        this.setState({
          dataList: urlData,
          sId: sId !== undefined ? sId : '',
        });
      }
    }
  }

  shouldComponentUpdate(nextProps, nextState) {
    const { componentName } = nextProps;
    const { sId } = this.props;
    if (sId === undefined) {
      return true;
    }
    let flag = true;
    if (nextState.disabled !== this.state.disabled) {
      return true;
    }
    if (this.state.sTabId === nextProps.app.currentPane.key &&
      this.state.componentName === componentName) {
      flag = true;
    } else {
      flag = false;
    }
    return flag;
  }

  render() {
    const {
      app, form, handleModalPane, dataName, dataType, handleSelectChange, onClose,
    } = this.props;
    const {
      dataList, sId, sActiveId, disabled,
    } = this.state;
    const childProps = {
      app,
      form,
      sActiveId,
      dataList,
      sId,
      disabled,
      handleModalPane,
      handleSelectChange,
      dataName,
      dataType,
      onClose,
    };
    const {
      tabSalesControl, tabCommonSetting, tabSchedule, tabProductManage,
    } = this.state;
    const {
      sCbxDeliverGoods, sCbxDeliverGoodsNotify, sCbxSrcNoCheck, bCkxLookCustomer, bCkxDeliverGoodsReply, bCkxUseByCheck, bCkxGetAllWebOrder,
    } = this.state;
    const {
      sCbxSerchDate, bCkxLookSupply, bCkxDefineCheck, bCkxTmpCheck, bCkxModifyBillNoMakePerson, bCkxIntervalMonthModifyBill,
    } = this.state;
    const { bCkxOeeNoConnectPlan, bCkxProduction, bCkxCopyLimit } = this.state;
    const {
      sCbxOutSideCostPrice, sCbxFactoryCalendar, sCbxMat, sCbxProductionReport,
    } = this.state;
    const { sCbxDstributionWage, bCkxRealWage, bCkxComplexWage } = this.state;
    const {
      bCkxProcessFilter, bCkxNotProduction, bCkxOrderStart, bCkxOeeLogin, sCbxProductioning, sCbxWorkOrderComplete, sCbxRateGetValue,
    } = this.state;
    const {
      sCbxProcessSelectType, sCbxNoProductProcessGetValue, sCbxProductMaterials, sCbxLine, sCbxFormula,
    } = this.state;
    const { bCkxCopyFromTechnology } = this.state;
    const { bCkxWorkOrderNoDrawOutSide, bCkxMaterialsViewAll } = this.state;
    const sCbxDeliverGoodsProps = { showConfig: sCbxDeliverGoods, ...childProps };
    const sCbxDeliverGoodsNotifyProps = { showConfig: sCbxDeliverGoodsNotify, ...childProps };
    const sCbxSrcNoCheckProps = { showConfig: sCbxSrcNoCheck, ...childProps };
    const bCkxLookCustomerProps = { showConfig: bCkxLookCustomer, ...childProps };
    const bCkxDeliverGoodsReplyProps = { showConfig: bCkxDeliverGoodsReply, ...childProps };
    const bCkxUseByCheckProps = { showConfig: bCkxUseByCheck, ...childProps };
    const bCkxGetAllWebOrderProps = { showConfig: bCkxGetAllWebOrder, ...childProps };
    const sCbxSerchDateProps = { showConfig: sCbxSerchDate, ...childProps };
    const bCkxLookSupplyProps = { showConfig: bCkxLookSupply, ...childProps };
    const bCkxDefineCheckProps = { showConfig: bCkxDefineCheck, ...childProps };
    const bCkxTmpCheckProps = { showConfig: bCkxTmpCheck, ...childProps };
    const bCkxModifyBillNoMakePersonProps = { showConfig: bCkxModifyBillNoMakePerson, ...childProps };
    const bCkxIntervalMonthModifyBillProps = { showConfig: bCkxIntervalMonthModifyBill, ...childProps };
    const bCkxOeeNoConnectPlanProps = { showConfig: bCkxOeeNoConnectPlan, ...childProps };
    const bCkxProductionProps = { showConfig: bCkxProduction, ...childProps };
    const bCkxCopyLimitProps = { showConfig: bCkxCopyLimit, ...childProps };
    const sCbxOutSideCostPriceProps = { showConfig: sCbxOutSideCostPrice, ...childProps };
    const sCbxFactoryCalendarProps = { showConfig: sCbxFactoryCalendar, ...childProps };
    const sCbxMatProps = { showConfig: sCbxMat, ...childProps };
    const sCbxProductionReportProps = { showConfig: sCbxProductionReport, ...childProps };
    const sCbxDstributionWageProps = { showConfig: sCbxDstributionWage, ...childProps };
    const bCkxRealWageProps = { showConfig: bCkxRealWage, ...childProps };
    const bCkxComplexWageProps = { showConfig: bCkxComplexWage, ...childProps };
    const bCkxProcessFilterProps = { showConfig: bCkxProcessFilter, ...childProps };
    const bCkxNotProductionProps = { showConfig: bCkxNotProduction, ...childProps };
    const bCkxOrderStartProps = { showConfig: bCkxOrderStart, ...childProps };
    const bCkxOeeLoginProps = { showConfig: bCkxOeeLogin, ...childProps };
    const sCbxProductioningProps = { showConfig: sCbxProductioning, ...childProps };
    const sCbxWorkOrderCompleteProps = { showConfig: sCbxWorkOrderComplete, ...childProps };
    const sCbxRateGetValueProps = { showConfig: sCbxRateGetValue, ...childProps };
    const sCbxProcessSelectTypeProps = { showConfig: sCbxProcessSelectType, ...childProps };
    const sCbxNoProductProcessGetValueProps = { showConfig: sCbxNoProductProcessGetValue, ...childProps };
    const sCbxProductMaterialsProps = { showConfig: sCbxProductMaterials, ...childProps };
    const sCbxLineProps = { showConfig: sCbxLine, ...childProps };
    const sCbxFormulaProps = { showConfig: sCbxFormula, ...childProps };
    const bCkxCopyFromTechnologyProps = { showConfig: bCkxCopyFromTechnology, ...childProps };
    const bCkxWorkOrderNoDrawOutSideProps = { showConfig: bCkxWorkOrderNoDrawOutSide, ...childProps };
    const bCkxMaterialsViewAllProps = { showConfig: bCkxMaterialsViewAll, ...childProps };
    const formItemLayout = { labelCol: { span: 12 }, wrapperCol: { span: 12 } };
    return (
      <FormItem className={styles.searchSlaveForm}>
        <Row type="flex" justify="space-between">
          <Col span={11}>
            <div className={styles.tabChild}>
              <div className={styles.tabChildTitle}>
                <span>{tabSalesControl.showName}</span>
              </div>
              <Row type="flex" justify="space-between">
                <Col span={11}>
                  <ShowType sName="sCbxDeliverGoods" showDefaultName="送货单控制(按..单送货)" {...sCbxDeliverGoodsProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="sCbxSrcNoCheck" showDefaultName="未对账印件清单来源" {...sCbxSrcNoCheckProps} useParentName formItemLayout={formItemLayout} />
                </Col>
                <Col span={11}>
                  <ShowType sName="sCbxDeliverGoodsNotify" showDefaultName="送货通知单控制(按..单通知)" {...sCbxDeliverGoodsNotifyProps} useParentName formItemLayout={formItemLayout} />
                </Col>
              </Row>
              <Row type="flex" justify="space-between">
                <Col span={11}>
                  <ShowType sName="bCkxLookCustomer" showDefaultName="启用客户查看权限" {...bCkxLookCustomerProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="bCkxUseByCheck" showDefaultName="客户信息审核后，才能启用" {...bCkxUseByCheckProps} useParentName formItemLayout={formItemLayout} />
                </Col>
                <Col span={11}>
                  <ShowType sName="bCkxDeliverGoodsReply" showDefaultName="启用送货单回执流程" {...bCkxDeliverGoodsReplyProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="bCkxGetAllWebOrder" showDefaultName="获取线上订单(审核+未审核)" {...bCkxGetAllWebOrderProps} useParentName formItemLayout={formItemLayout} />
                </Col>
              </Row>
            </div>
          </Col>
          <Col span={11}>
            <div className={styles.tabChild}>
              <div className={styles.tabChildTitle}>
                <span>{tabCommonSetting.showName}</span>
              </div>
              <Row type="flex" justify="space-between">
                <Col span={11}>
                  <ShowType sName="sCbxSerchDate" showDefaultName="列表明细查询日期类型" {...sCbxSerchDateProps} useParentName formItemLayout={formItemLayout} />
                </Col>
              </Row>
              <Row type="flex" justify="space-between">
                <Col span={11}>
                  <ShowType sName="bCkxLookSupply" showDefaultName="启用供应商查看权限(只针对发外)" {...bCkxLookSupplyProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="bCkxDefineCheck" showDefaultName="启用自定义审核功能" {...bCkxDefineCheckProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="bCkxTmpCheck" showDefaultName="启用临时审核" {...bCkxTmpCheckProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="bCkxModifyBillNoMakePerson" showDefaultName="启用非制单人修改单据" {...bCkxModifyBillNoMakePersonProps} useParentName formItemLayout={formItemLayout} />
                </Col>
                <Col span={11}>
                  <ShowType sName="bCkxIntervalMonthModifyBill" showDefaultName="启用隔月修改单据" {...bCkxIntervalMonthModifyBillProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="bCkxOeeNoConnectPlan" showDefaultName="印后工序OEE,不关联计划排程" {...bCkxOeeNoConnectPlanProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="bCkxProduction" showDefaultName="现产报产二次审核才记工资" {...bCkxProductionProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="bCkxCopyLimit" showDefaultName="不显示禁止拷贝" {...bCkxCopyLimitProps} useParentName formItemLayout={formItemLayout} />
                </Col>
              </Row>
            </div>
          </Col>
          <Col span={11}>
            <div className={styles.tabChild}>
              <div className={styles.tabChildTitle}>
                <span>{tabSchedule.showName}</span>
              </div>
              <Row type="flex" justify="space-between">
                <Col span={11}>
                  <ShowType sName="sCbxOutSideCostPrice" showDefaultName="发外加工取计划成本价" {...sCbxOutSideCostPriceProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="sCbxFactoryCalendar" showDefaultName="工厂日历" {...sCbxFactoryCalendarProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="sCbxMat" showDefaultName="材料准备" {...sCbxMatProps} useParentName formItemLayout={formItemLayout} />
                </Col>
                <Col span={11}>
                  <ShowType sName="sCbxProductionReport" showDefaultName="产量上报数据源" {...sCbxProductionReportProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="sCbxDstributionWage" showDefaultName="工资分配方案" {...sCbxDstributionWageProps} useParentName formItemLayout={formItemLayout} />
                </Col>
              </Row>
              <Row type="flex" justify="space-between">
                <Col span={11}>
                  <ShowType sName="bCkxRealWage" showDefaultName="启用实际工资" {...bCkxRealWageProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="bCkxComplexWage" showDefaultName="启用复杂计件公司解决方案" {...bCkxComplexWageProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="bCkxProcessFilter" showDefaultName="启用用户过滤排程工序功能" {...bCkxProcessFilterProps} useParentName formItemLayout={formItemLayout} />
                </Col>
                <Col span={11}>
                  <ShowType sName="bCkxNotProduction" showDefaultName="产量上报禁止多报" {...bCkxNotProductionProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="bCkxOrderStart" showDefaultName="OEE工序没有开工,下道工序不能开工" {...bCkxOrderStartProps} useParentName useParentNameformItemLayout={formItemLayout} />
                  <ShowType sName="bCkxOeeLogin" showDefaultName="OEE登录按班组选机台" {...bCkxOeeLoginProps} useParentName formItemLayout={formItemLayout} />
                </Col>
              </Row>
            </div>
          </Col>
          <Col span={11}>
            <div className={styles.tabChild}>
              <div className={styles.tabChildTitle}>
                <span>{tabProductManage.showName}</span>
              </div>
              <Row type="flex" justify="space-between">
                <Col span={11}>
                  <ShowType sName="sCbxProductioning" showDefaultName="正在生产标识" {...sCbxProductioningProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="sCbxWorkOrderComplete" showDefaultName="生产完工标识" {...sCbxWorkOrderCompleteProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="sCbxRateGetValue" showDefaultName="倍率取值标准" {...sCbxRateGetValueProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="sCbxProcessSelectType" showDefaultName="选择工序类型" {...sCbxProcessSelectTypeProps} useParentName formItemLayout={formItemLayout} />
                </Col>
                <Col span={11}>
                  <ShowType sName="sCbxNoProductProcessGetValue" showDefaultName="无成品工序产出取值" {...sCbxNoProductProcessGetValueProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="sCbxProductMaterials" showDefaultName="领料数据来源" {...sCbxProductMaterialsProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="sCbxLine" showDefaultName="自动化线下流程" {...sCbxLineProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="sCbxFormula" showDefaultName="轮转订单公式" {...sCbxFormulaProps} useParentName formItemLayout={formItemLayout} />
                </Col>
              </Row>
              <Row type="flex" justify="space-between">
                <Col span={11}>
                  <ShowType sName="bCkxCopyFromTechnology" showDefaultName="工单复制从工艺卡,以工艺为主" {...bCkxCopyFromTechnologyProps} useParentName formItemLayout={formItemLayout} />
                  <ShowType sName="bCkxWorkOrderNoDrawOutSide" showDefaultName="工单没有领料和发外入库,单据不能完工" {...bCkxWorkOrderNoDrawOutSideProps} useParentName formItemLayout={formItemLayout} />
                </Col>
                <Col span={11}>
                  <ShowType sName="bCkxMaterialsViewAll" showDefaultName="物料需求计划显示全部物料" {...bCkxMaterialsViewAllProps} useParentName formItemLayout={formItemLayout} />
                </Col>
              </Row>
            </div>
          </Col>
        </Row>
      </FormItem>
    );
  }
}

export default TabSalesBuyerComponent;

